import React, { Component } from 'react'
import './map.static.css'

export default class StaticMap extends Component {
  render() {
    const bgStyle = {
      backgroundImage: `url(${this.props.mapSrc})`
    }
    return (
      <div className="map-container" style={bgStyle}></div>
    )
  }
}

StaticMap.defaultProps = {
  mapSrc: require('../static/images/map.jpeg')
}